//员工的路由
//导入layout
import layout from '@/layout'

export default {
  path: '/employees',
  name: 'employees',
  component: layout,
  children: [
    {
      path: '',
      name: '',
      component: () => import('@/views/employees'),
      meta: { title: '员工', icon: 'dashboard' }
    },
    {
      path: 'import',
      name: 'import', //可以省略
      hidden: true,
      component: () => import('@/views/employees/import/index.vue'),
      meta: { title: '批量导入', icon: 'dashboard' }
    },
    {
      path: 'detail/:id',
      name: 'detail', //可以省略
      hidden: true,
      component: () => import('@/views/employees/detail/index.vue')
    },
    //打印的路由
    {
      path: 'print/:id',
      name: 'print', //可以省略
      hidden: true,
      component: () => import('@/views/employees/print/index.vue')
    },
  ]
}
